package com.byt.common.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class ConsultaBean implements Parcelable {
    /**
     * consulation_total : 3
     * order_id : e3wr550tib5kfdk5ts2
     * content : 咨询问题
     * member_id : 9uk74fh4bu74
     * nick_name : 张三
     * photo_src : ssdd.jpg
     * member_status : 孕18周3天
     * style : 1
     * state : 1
     * outlay_type : 2
     * price : 9.9
     * begin_datetime : 1554646533
     * end_datetime : 1554657533
     * reply_flag : 0
     * reply_begin_datetime : 0
     * reply_end_datetime : 0
     * province : 广东省
     * city : 深圳市
     * county : 龙华新区
     * free_number : 2
     * member_remark : 患者备注
     * dialogue_datetime : 1568881621
     */

    private int consulation_total;
    private String order_id;
    private String content;
    private long member_id;
    private String nick_name;
    private String photo_src;
    private String member_status;
    private int style; // 1：私人咨询 2：图文咨询
    private int state; // 当前咨询状态, 1：咨询中 2：已关闭 3：已解决
    private int outlay_type;//1：免费 2：付费
    private double price;
    private long begin_datetime;
    private long end_datetime;
    private int reply_flag;
    private long reply_begin_datetime;
    private long reply_end_datetime;
    private String province;
    private String city;
    private String county;
    private int free_number;
    private String member_remark;
    private long dialogue_datetime;
    private int summary_flag; // 0未总结 1 已总结
    private int read_flag; // 阅读标记，0：未读，1：已读

    protected ConsultaBean(Parcel in) {
        consulation_total = in.readInt();
        order_id = in.readString();
        content = in.readString();
        member_id = in.readLong();
        nick_name = in.readString();
        photo_src = in.readString();
        member_status = in.readString();
        style = in.readInt();
        state = in.readInt();
        outlay_type = in.readInt();
        price = in.readDouble();
        begin_datetime = in.readLong();
        end_datetime = in.readLong();
        reply_flag = in.readInt();
        reply_begin_datetime = in.readLong();
        reply_end_datetime = in.readLong();
        province = in.readString();
        city = in.readString();
        county = in.readString();
        free_number = in.readInt();
        member_remark = in.readString();
        dialogue_datetime = in.readLong();
        summary_flag = in.readInt();
        read_flag = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(consulation_total);
        dest.writeString(order_id);
        dest.writeString(content);
        dest.writeLong(member_id);
        dest.writeString(nick_name);
        dest.writeString(photo_src);
        dest.writeString(member_status);
        dest.writeInt(style);
        dest.writeInt(state);
        dest.writeInt(outlay_type);
        dest.writeDouble(price);
        dest.writeLong(begin_datetime);
        dest.writeLong(end_datetime);
        dest.writeInt(reply_flag);
        dest.writeLong(reply_begin_datetime);
        dest.writeLong(reply_end_datetime);
        dest.writeString(province);
        dest.writeString(city);
        dest.writeString(county);
        dest.writeInt(free_number);
        dest.writeString(member_remark);
        dest.writeLong(dialogue_datetime);
        dest.writeInt(summary_flag);
        dest.writeInt(read_flag);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<ConsultaBean> CREATOR = new Creator<ConsultaBean>() {
        @Override
        public ConsultaBean createFromParcel(Parcel in) {
            return new ConsultaBean(in);
        }

        @Override
        public ConsultaBean[] newArray(int size) {
            return new ConsultaBean[size];
        }
    };

    public int getConsulation_total() {
        return consulation_total;
    }

    public void setConsulation_total(int consulation_total) {
        this.consulation_total = consulation_total;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getMember_id() {
        return member_id;
    }

    public void setMember_id(long member_id) {
        this.member_id = member_id;
    }

    public String getNick_name() {
        return nick_name;
    }

    public void setNick_name(String nick_name) {
        this.nick_name = nick_name;
    }

    public String getPhoto_src() {
        return photo_src;
    }

    public void setPhoto_src(String photo_src) {
        this.photo_src = photo_src;
    }

    public String getMember_status() {
        return member_status;
    }

    public void setMember_status(String member_status) {
        this.member_status = member_status;
    }

    public int getStyle() {
        return style;
    }

    public void setStyle(int style) {
        this.style = style;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getOutlay_type() {
        return outlay_type;
    }

    public void setOutlay_type(int outlay_type) {
        this.outlay_type = outlay_type;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public long getBegin_datetime() {
        return begin_datetime;
    }

    public void setBegin_datetime(long begin_datetime) {
        this.begin_datetime = begin_datetime;
    }

    public long getEnd_datetime() {
        return end_datetime;
    }

    public void setEnd_datetime(long end_datetime) {
        this.end_datetime = end_datetime;
    }

    public int getReply_flag() {
        return reply_flag;
    }

    public void setReply_flag(int reply_flag) {
        this.reply_flag = reply_flag;
    }

    public long getReply_begin_datetime() {
        return reply_begin_datetime;
    }

    public void setReply_begin_datetime(long reply_begin_datetime) {
        this.reply_begin_datetime = reply_begin_datetime;
    }

    public long getReply_end_datetime() {
        return reply_end_datetime;
    }

    public void setReply_end_datetime(long reply_end_datetime) {
        this.reply_end_datetime = reply_end_datetime;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public int getFree_number() {
        return free_number;
    }

    public void setFree_number(int free_number) {
        this.free_number = free_number;
    }

    public String getMember_remark() {
        return member_remark;
    }

    public void setMember_remark(String member_remark) {
        this.member_remark = member_remark;
    }

    public long getDialogue_datetime() {
        return dialogue_datetime;
    }

    public void setDialogue_datetime(long dialogue_datetime) {
        this.dialogue_datetime = dialogue_datetime;
    }

    public int getSummary_flag() {
        return summary_flag;
    }

    public void setSummary_flag(int summary_flag) {
        this.summary_flag = summary_flag;
    }

    public int getRead_flag() {
        return read_flag;
    }

    public void setRead_flag(int read_flag) {
        this.read_flag = read_flag;
    }
}